import axiosInstance from "../index";

export const getUser = async (data) => {
    return axiosInstance({
        url: '/getUser',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}


export const deleteUser = async (data) => {
    return axiosInstance({
        url: '/deleteUser',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        params: data,
    })
}

export const editUser = async (data) => {
    return axiosInstance({
        url: '/editUser',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}